﻿<classes>
  <class name="Category" assembly="CoyoEden.BO" table="cy_Categories" displayName="Category">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="Name">
      <rule name="Name">
        <add key="maxLength" value="50" />
      </rule>
    </property>
    <property name="Description">
      <rule name="Description">
        <add key="maxLength" value="200" />
      </rule>
    </property>
    <property name="ParentID" type="Guid" />
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="PostCategories" type="multiple" relatedClass="PostCategory" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="Id" relatedProperty="CategoryID" />
    </relationship>
  </class>
  <class name="Page" assembly="CoyoEden.BO" table="cy_Pages" displayName="Page">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="Title">
      <rule name="Title">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <property name="Description" />
    <property name="PageContent" />
    <property name="Keywords" />
    <property name="DateCreated" type="DateTime" />
    <property name="DateModified" type="DateTime" />
    <property name="IsPublished" type="Boolean" />
    <property name="IsFrontPage" type="Boolean" />
    <property name="Parent" type="Guid" />
    <property name="ShowInList" type="Boolean" />
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
  </class>
  <class name="PingService" assembly="CoyoEden.BO" table="cy_PingService" displayName="Ping Service">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="Link">
      <rule name="Link">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
  </class>
  <class name="Post" assembly="CoyoEden.BO" table="cy_Posts" displayName="Post">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="Title">
      <rule name="Title">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <property name="Description" />
    <property name="PostContent" />
    <property name="DateCreated" type="DateTime" />
    <property name="DateModified" type="DateTime" />
    <property name="Author">
      <rule name="Author">
        <add key="maxLength" value="50" />
      </rule>
    </property>
    <property name="IsPublished" type="Boolean" />
    <property name="IsCommentEnabled" type="Boolean" />
    <property name="Raters" type="Int32" />
    <property name="Rating" type="Single" />
    <property name="Slug">
      <rule name="Slug">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="PostCategories" type="multiple" relatedClass="PostCategory" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="Id" relatedProperty="PostID" />
    </relationship>
    <relationship name="PostComments" type="multiple" relatedClass="PostComment" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="Id" relatedProperty="PostID" />
    </relationship>
    <relationship name="PostNotifies" type="multiple" relatedClass="PostNotify" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="Id" relatedProperty="PostID" />
    </relationship>
    <relationship name="PostTags" type="multiple" relatedClass="PostTag" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="Id" relatedProperty="PostID" />
    </relationship>
  </class>
  <class name="PostCategory" assembly="CoyoEden.BO" table="cy_PostCategory" displayName="Post Category">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="PostID" type="Guid" compulsory="true">
      <businessObjectLookupList class="Post" assembly="CoyoEden.BO" />
    </property>
    <property name="CategoryID" type="Guid" compulsory="true">
      <businessObjectLookupList class="Category" assembly="CoyoEden.BO" />
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="Category" type="single" relatedClass="Category" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="CategoryID" relatedProperty="Id" />
    </relationship>
    <relationship name="Post" type="single" relatedClass="Post" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="PostID" relatedProperty="Id" />
    </relationship>
  </class>
  <class name="PostComment" assembly="CoyoEden.BO" table="cy_PostComment" displayName="Post Comment">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="PostID" type="Guid" compulsory="true">
      <businessObjectLookupList class="Post" assembly="CoyoEden.BO" />
    </property>
    <property name="ParentID" type="Guid" compulsory="true" />
    <property name="DateCreated" type="DateTime" compulsory="true" />
    <property name="Author">
      <rule name="Author">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <property name="Email">
      <rule name="Email">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <property name="Website">
      <rule name="Website">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <property name="Comment" />
    <property name="Country">
      <rule name="Country">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <property name="Ip">
      <rule name="Ip">
        <add key="maxLength" value="50" />
      </rule>
    </property>
    <property name="IsApproved" type="Boolean" />
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="Post" type="single" relatedClass="Post" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="PostID" relatedProperty="Id" />
    </relationship>
  </class>
  <class name="PostNotify" assembly="CoyoEden.BO" table="cy_PostNotify" displayName="Post Notify">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="PostID" type="Guid" compulsory="true">
      <businessObjectLookupList class="Post" assembly="CoyoEden.BO" />
    </property>
    <property name="NotifyAddress">
      <rule name="NotifyAddress">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="Post" type="single" relatedClass="Post" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="PostID" relatedProperty="Id" />
    </relationship>
  </class>
  <class name="PostTag" assembly="CoyoEden.BO" table="cy_PostTag" displayName="Post Tag">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="PostID" type="Guid" compulsory="true">
      <businessObjectLookupList class="Post" assembly="CoyoEden.BO" />
    </property>
    <property name="Tag">
      <rule name="Tag">
        <add key="maxLength" value="50" />
      </rule>
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="Post" type="single" relatedClass="Post" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="PostID" relatedProperty="Id" />
    </relationship>
  </class>
  <class name="Profile" assembly="CoyoEden.BO" table="cy_Profiles" displayName="Profile">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="UserName">
      <rule name="UserName">
        <add key="maxLength" value="100" />
      </rule>
    </property>
    <property name="SettingName">
      <rule name="SettingName">
        <add key="maxLength" value="200" />
      </rule>
    </property>
    <property name="SettingValue" />
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
  </class>
  <class name="Role" assembly="CoyoEden.BO" table="cy_Roles" displayName="Role">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="Name" compulsory="true">
      <rule name="Name">
        <add key="maxLength" value="100" />
      </rule>
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="UserRoles" type="multiple" relatedClass="UserRole" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="Id" relatedProperty="RoleID" />
    </relationship>
  </class>
  <class name="Setting" assembly="CoyoEden.BO" table="cy_Settings" displayName="Setting">
    <property name="SettingName" compulsory="true">
      <rule name="SettingName">
        <add key="maxLength" value="50" />
      </rule>
    </property>
    <property name="SettingValue" />
    <property name="Id" type="Guid" compulsory="true" />
    <property name="SettingType" default="(N'AppSetting')" compulsory="true">
      <rule name="SettingType">
        <add key="maxLength" value="50" />
      </rule>
    </property>
    <primaryKey isObjectID="false">
      <prop name="Id" />
      <prop name="SettingName" />
    </primaryKey>
  </class>
  <class name="StopWord" assembly="CoyoEden.BO" table="cy_StopWords" displayName="Stop Word">
    <property name="Word" compulsory="true">
      <rule name="Word">
        <add key="maxLength" value="50" />
      </rule>
    </property>
    <primaryKey isObjectID="false">
      <prop name="Word" />
    </primaryKey>
  </class>
  <class name="User" assembly="CoyoEden.BO" table="cy_Users" displayName="User">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="UserName" compulsory="true">
      <rule name="UserName">
        <add key="maxLength" value="100" />
      </rule>
    </property>
    <property name="Password" compulsory="true">
      <rule name="Password">
        <add key="maxLength" value="255" />
      </rule>
    </property>
    <property name="LastLoginTime" type="DateTime" />
    <property name="EmailAddress">
      <rule name="EmailAddress">
        <add key="maxLength" value="100" />
      </rule>
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="UserRoles" type="multiple" relatedClass="UserRole" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="Id" relatedProperty="UserID" />
    </relationship>
  </class>
  <class name="UserRole" assembly="CoyoEden.BO" table="cy_UserRoles" displayName="User Role">
    <property name="Id" type="Guid" compulsory="true" />
    <property name="UserID" type="Guid" compulsory="true">
      <businessObjectLookupList class="User" assembly="CoyoEden.BO" />
    </property>
    <property name="RoleID" type="Guid" compulsory="true">
      <businessObjectLookupList class="Role" assembly="CoyoEden.BO" />
    </property>
    <primaryKey>
      <prop name="Id" />
    </primaryKey>
    <relationship name="Role" type="single" relatedClass="Role" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="RoleID" relatedProperty="Id" />
    </relationship>
    <relationship name="User" type="single" relatedClass="User" relatedAssembly="CoyoEden.BO">
      <relatedProperty property="UserID" relatedProperty="Id" />
    </relationship>
  </class>
</classes>